<?php
include "includes/comunes.php";
if (!function_exists('json_encode')) {
	require_once 'json/jsonwrapper_inner.php';
}



$array = array();

//if ($_GET['_name'] == 'diferencia1')
//{

//	 if ( $_GET['_value'] == 0 )//usa
//	 {
//		$array[] = array('0' => 'Sin valores');
//		
//	  } else
//	  {
              $sqlplanes="select * from motivossolicitudes where motivoId <> 1";
              $respla=cons_sql_up($sqlplanes);
              while ($reg=  mysql_fetch_array($respla)){
              $array[] = array($reg['motivoId'] => utf8_encode($reg['motivoNombre']));
             
              }

//	  }
//}  else
//{
//	$array[] = array('1' => 'Data 1');
//	$array[] = array('2' => 'Data 2');	
//	$array[] = array('3' => 'Data 3');	
//}
echo json_encode( $array );
?>

